<!DOCTYPE html>
<html>

	<head>
		<title>【在线订餐系统】— 后台管理</title>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<link rel="stylesheet" type='text/css' href='/css/admin/admin.css' />
		<style>
		</style>
	</head>

	<body>

		<div class="header">欢迎登录后台管理系统
			<div class="user-exit floatright">
				<span><%=user.username%></span>
				<a href="/admin/logout">退出</a>
			</div>
		</div>
		<div class="topmenu">
			<ul>
				<a href="/admin/index">
					<li class="current-item">用户管理</li>
				</a>
				<a href="#">
					<li>分类管理</li>
				</a>
				<a href="#">
					<li>新闻管理</li>
				</a>
				<a href="#">
					<li>关于我们</li>
				</a>
			</ul>
		</div>
		<div class="split-line"></div>
		<div class="main">
			<center>
				<h1>用户管理</h1>
				<br>
				<h3><a href="/admin/adduser">添加用户</a></h3>
				<br>

			<table class="table-user" border="1">
				<tr>
					<th>user_id</th>
					<th>user_name</th>
					<th>user_sex</th>
					<th>user_age</th>
					<th>user_phone</th>
					<th>user_nick</th>
					<th>user_pwd</th>
					<th>is_admin</th>
					<th>操作</th>
					<th>操作</th>
				</tr>
				<% userArr.forEach(function(item){%>
				<tr>
					<th><%=item.user_id%></th>
					<th><%=item.user_name%></th>
					<th><%=item.user_sex%></th>
					<th><%=item.user_age%></th>
					<th><%=item.user_phone%></th>
					<th><%=item.user_nick%></th>
					<th><%=item.user_pwd%></th>
					<th><%=item.is_admin%></th>
					<th><a href="/admin/edituser?userid=<%=item.user_id%>">编辑</a></th>
					<th><a href="/admin/deluser?userid=<%=item.user_id%>">删除</a></th>
				</tr>
				<% }) %>

			</table>
			
			</center>
		</div>
	</body>

</html>